/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Dermatology Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20106 (C-0-T19465-S20096-S20106-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getDermatologyProviderCodes()
 * @model extendedMetaData="name='DermatologyProviderCodes'"
 * @generated
 */
public enum DermatologyProviderCodes implements Enumerator {
	/**
	 * The '<em><b>207N00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207N00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_207N00000X(0, "_207N00000X", "207N00000X"),

	/**
	 * The '<em><b>207NI0002X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207NI0002X_VALUE
	 * @generated
	 * @ordered
	 */
	_207NI0002X(1, "_207NI0002X", "207NI0002X"),

	/**
	 * The '<em><b>207NS0135X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207NS0135X_VALUE
	 * @generated
	 * @ordered
	 */
	_207NS0135X(2, "_207NS0135X", "207NS0135X"),

	/**
	 * The '<em><b>207ND0900X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207ND0900X_VALUE
	 * @generated
	 * @ordered
	 */
	_207ND0900X(3, "_207ND0900X", "207ND0900X"),

	/**
	 * The '<em><b>207ND0101X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207ND0101X_VALUE
	 * @generated
	 * @ordered
	 */
	_207ND0101X(4, "_207ND0101X", "207ND0101X"),

	/**
	 * The '<em><b>207NP0225X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207NP0225X_VALUE
	 * @generated
	 * @ordered
	 */
	_207NP0225X(5, "_207NP0225X", "207NP0225X");

	/**
	 * The '<em><b>207N00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207N00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207N00000X
	 * @model literal="207N00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _207N00000X_VALUE = 0;

	/**
	 * The '<em><b>207NI0002X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207NI0002X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207NI0002X
	 * @model literal="207NI0002X"
	 * @generated
	 * @ordered
	 */
	public static final int _207NI0002X_VALUE = 1;

	/**
	 * The '<em><b>207NS0135X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207NS0135X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207NS0135X
	 * @model literal="207NS0135X"
	 * @generated
	 * @ordered
	 */
	public static final int _207NS0135X_VALUE = 2;

	/**
	 * The '<em><b>207ND0900X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207ND0900X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207ND0900X
	 * @model literal="207ND0900X"
	 * @generated
	 * @ordered
	 */
	public static final int _207ND0900X_VALUE = 3;

	/**
	 * The '<em><b>207ND0101X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207ND0101X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207ND0101X
	 * @model literal="207ND0101X"
	 * @generated
	 * @ordered
	 */
	public static final int _207ND0101X_VALUE = 4;

	/**
	 * The '<em><b>207NP0225X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207NP0225X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207NP0225X
	 * @model literal="207NP0225X"
	 * @generated
	 * @ordered
	 */
	public static final int _207NP0225X_VALUE = 5;

	/**
	 * An array of all the '<em><b>Dermatology Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final DermatologyProviderCodes[] VALUES_ARRAY =
		new DermatologyProviderCodes[] {
			_207N00000X,
			_207NI0002X,
			_207NS0135X,
			_207ND0900X,
			_207ND0101X,
			_207NP0225X,
		};

	/**
	 * A public read-only list of all the '<em><b>Dermatology Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<DermatologyProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Dermatology Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static DermatologyProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			DermatologyProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Dermatology Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static DermatologyProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			DermatologyProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Dermatology Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static DermatologyProviderCodes get(int value) {
		switch (value) {
			case _207N00000X_VALUE: return _207N00000X;
			case _207NI0002X_VALUE: return _207NI0002X;
			case _207NS0135X_VALUE: return _207NS0135X;
			case _207ND0900X_VALUE: return _207ND0900X;
			case _207ND0101X_VALUE: return _207ND0101X;
			case _207NP0225X_VALUE: return _207NP0225X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private DermatologyProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //DermatologyProviderCodes
